package com.example.springboot.mapper.test01.mapper;

import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapperTest01 {
	// 查询语句
//	@Select("SELECT * FROM USERS WHERE NAME = #{name}")
//     findByName(@Param("name") String name);
//    分页查询
    List select();
    // 添加
//	@Insert("INSERT INTO USERS(NAME, AGE) VALUES(#{name}, #{age})")
	int insert(@Param("name") String name, @Param("age") Integer age);
}

